package com.jgzx.domain.dto;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import java.util.Date;

@Data
public class BlogDTO {
    @ApiModelProperty(value = "个人博客id，更新，增加博客时必填",required = true)
    @Min(value = 1,message = "id不能为0负数")
    private int id;

    @ApiModelProperty(value = "个人博客标题，新增博客时必填")
    @NotEmpty(message = "title不能为空")
    private String title;

    @ApiModelProperty(value = "个人博客作者，新增时必填",required = true)
    @NotEmpty(message = "author不能为空")
    private String author;

    @ApiModelProperty(value = "个人博客篇幅")
    @NotEmpty(message = "views不能为空")
    private int views;
}
